#include <string>
#include <SimpleAmqpClient/SimpleAmqpClient.h>
using std::string;
struct MQinfo{
    string Exchange = "file_exchange";
    string Queue = "file_queue";
    string RoutingKey = "fileinfo";
};
int main(){
    MQinfo info;
    // 1 建立通信的连接channel
    AmqpClient::Channel::ptr_t channel = AmqpClient::Channel::Create();
    // 2 设置好消息
    AmqpClient::BasicMessage::ptr_t message = AmqpClient::BasicMessage::Create("{\"filename\":\"tmp/1.txt\"}");
    // 3 通过channel去发布消息
    channel->BasicPublish(info.Exchange,info.RoutingKey,message);
    return 0;
}